package main

import (
	"MaterialIdentification/svc"
	"github.com/gin-gonic/gin"
	"net/http"
)

func Getlogsinfo(context *gin.Context) {
	i := Iddto{}
	context.BindJSON(&i)

	l := Logs{}
	svc.Db.Find(&l, i.Id)
	context.JSON(http.StatusOK, NewRespData("根据id查询日志详情成功", l))
}
